package com.woniuxy.controller;

import com.woniuxy.entity.TestTestLabel;
import com.woniuxy.service.TestTestLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (TestTestLabel)表控制层
 *
 * @author zjx
 * @since 2021-05-14 19:42:04
 */
@RestController
@RequestMapping("testTestLabel")
public class TestTestLabelController {
    /**
     * 服务对象
     */
    @Resource
    private TestTestLabelService testTestLabelService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public TestTestLabel selectOne(int id) {
        return this.testTestLabelService.queryById(id);
    }

}
